package object.model;

public enum TableType {
	TABLE("BASE TABLE"), VIEW("VIEW"), SYSVIEW("SYSTEM VIEW");
	private String value;
	private TableType(String value){
		this.value = value;
	}
	String getValue() {
		return value;
	}
	public static TableType valueOfDesc(String desc){
		for (TableType v : values()) {
			if (v.value.equals(desc)){
				return v;
			}
		}
		throw new IllegalArgumentException(
				"No enum const " + TableType.class + "@value." + desc);
	}
}
